package task1;

import javax.print.DocFlavor;

public class Phone {
    private String brand;
    private float price;
    private String color;

    void setBrand(String brand1){
        brand=brand1;
    }
    String getBrand(){
        return brand;
    }
    void setPrice(float price1){
        price=price1;
    }

    float getPrice(){
        return price;
    }

    void setColor(String color1){
        color=color1;
    }
    String getColor(){
        return color;
    }
    void call(){
        System.out.println("可以打电话");
    }
    void game(){
        System.out.println("可以玩游戏");
    }

}
